* {
    margin: 0;
    padding: 0;
}

body {
    overflow: hidden;
}
.navbar {
    position: relative;
    width: 100vw;
    label {
        position: absolute;
        top: 0;
        left: 70px;
        width: 100%;
        height: 43px;
        font-size: 30px;
        color: #5a738e;
        background-color: #ededed;
        padding-left: 20px;
        border: 1px solid #d9dee4;
        cursor: pointer;
        transition: all 0.5s;
    }
    ul {
        list-style: none;
        width: 70px;
        height: 100vh;
        background-color: #2a3f54;
        transition: all 0.5s;
        overflow: hidden;
        li {
            height: 70px;
            margin-bottom: 10px;
            &:first-child {
                display: flex;
                justify-content: center;
                align-items: center;
                padding: 0 10px;
                img {
                    width: 50px;
                    height: 50pxs;
                    border-radius: 50%;
                }
                span {
                    color: #fff;
                    white-space: nowrap;
                    padding-left: 10px;
                    display: none;
                }
            }
            a {
                display: flex;
                justify-content: center;
                align-items: center;
                flex-direction: column;
                width: 100%;
                height: 100%;
                color: #d1d1d1;
                text-decoration: none;
                i {
                    font-size: 25px;
                    margin-bottom: 10px;
                }
                span {
                    font-size: 12px;
                    white-space: nowrap;
                }
                &:hover {
                    color: #fff;
                    background-color: #35495d;
                }
            }
        }
    }

    input:checked {
        + label {
            left: 200px;
        }
        ~ ul {
            width: 200px;
            li a {
                flex-direction: row;
                justify-content: flex-start;
                i {
                    font-size: 18px;
                    margin: 0 15px 0 30px;
                }
                span {
                    font-size: 14px;
                }
            }
            li:first-child {
                // 将居中改为开头对齐
                justify-content: flex-start;
                span {
                    display: block;
                }
            }
        }
    }
}
#checkbox {
    display: none;
}
